home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.04 Apr 95 / TreeAppƒ / Application Shellƒ / main.cp < prev    next >
Encoding:
Text File  |  1996-04-04  |  462 b   |  21 lines  |  [TEXT/KAHL]

  1. /* this program puts up a dialog asking the user to select
  2.    a directory, then recursively scans the contents of the directory
  3.    to build a list of all files and directories contained in it
  4. */
  5.  
  6. #include "CPPTreeApp.h"
  7.  
  8. extern    CPPApplication    *gApplication;
  9.  
  10. void main (void)
  11. {    
  12.     gApplication = new CPPTreeApp ();
  13.     
  14.     if (gApplication)
  15.       {    
  16.           gApplication->Initialize ();    
  17.           gApplication->Go ();
  18.           gApplication->ShutDown ();
  19.           delete gApplication;
  20.       }
  21. }